home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 272 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: #ifdef XXXX
  5. Date: 3 Feb 1996 17:17:36 GMT
  6. Organization: Comp Sci, University of Melbourne
  7. Approved: clamage@eng.sun.com (comp.std.c++)
  8. Message-ID: <4evpfd$a75@mulga.cs.mu.OZ.AU>
  9. References: <1996Feb1.092058.4745@iiasa.ac.at> <3112531A.3410@ElSegundoCA.ATTGIS.COM>
  10. NNTP-Posting-Host: taumet.eng.sun.com
  11. Content-Type: text
  12. X-Nntp-Posting-Host: munta.cs.mu.oz.au
  13. Content-Length: 610
  14. Originator: clamage@taumet
  15.  
  16. "Charles F. McDevitt" <Chuck.McDevitt@elsegundoca.attgis.com> writes:
  17.  
  18. >Wouldn't it be better to update the C++ standard so the
  19. >default is that include files only get included once, and the
  20. >compiler/preprocessor keeps track of which ones it's already 
  21. >seen.  Then we wouldn't have to mess with these ugly #ifdefs
  22. >to make include files only be included once.
  23.  
  24. The problem with that idea is that it is not backwards compatible,
  25. and would break a very large amount of existing code.
  26.  
  27. --
  28. Fergus Henderson                 WWW: http://www.cs.mu.oz.au/~fjh
  29. fjh@cs.mu.oz.au                  PGP: finger fjh@128.250.37.3
  30.  
  31. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  32.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy is
  33.   summarized in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  34. ]
  35.